package com.ta.stage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "user_role")
@ApiModel(description = "用户角色")
public class UserRole implements Serializable {


    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private String userId;

    @TableField(value = "role_id")
    @ApiModelProperty(value = "用户编号")
    private String roleId;

    @TableField(value = "dept_id")
    @ApiModelProperty(value = "部门编号")
    private Float deptId;
}
